import reportRouters from './reportRouter.js'

export default [{
	path: '/app',
	component: () => import("@/home.vue"),
	children: [
		...reportRouters,
		{
			path: '/index',
			component: () => import("@/components/index/index.vue"),
		}, {
			path: '/role',
			component: () => import("@/components/role/role.vue"),
		}, {
			path: '/org',
			component: () => import("@/components/org/org.vue"),
		}, {
			path: '/declareDetail/:id',
			name:'declareDetail',
			component: () => import("@/components/declare/declareDetail.vue"),			
		}, {
			path: '/declare',
			component: () => import("@/components/declare/declare.vue"),
		}, {
			path: '/role',
			component: () => import("@/components/role/role.vue"),
		}, {
			path: '/audit',
			component: () => import("@/components/audit/audit.vue"),
		}, {
			path: '/dynamic',
			component: () => import("@/components/dynamic/dynamic.vue"),
		}, {
			path: '/dynamicDetail/:id',
			component: () => import("@/components/dynamic/dynamicDetail.vue"),
		},{
			path: '/modal',
	        component: () => import("@/demo/list.vue"),
		},{
			path: '/componentModal',
	        component: () => import("@/demo/componentModal.vue"),
		},{
			path:'/premises',
			component: () => import("@/components/premises/premises.vue"),
		},{
			path:'/customerPremises/:premisesId',
			name:'customerPremises',
			component: () => import("@/components/premises/customerPremises.vue"),
		},{
			path:'/premisesDetail/:premisesId',
			name:'premisesDetail',
			component: () => import("@/components/premises/premisesDetail.vue"),
		},{
			path:'/system',
			component: () => import("@/components/system/system.vue"),
		}]
	},{
		path: '/login',
		component: () => import("@/login.vue"),
    },{
		path: '*', //跳转主入口
        redirect: '/app'
    },{
			path: '/resetPassword',
			component: () => import("@/resetPassword.vue"),
    },{
			path: '/forgetPassword',
			component: () => import("@/forgetPassword.vue"),
    },{
    	path: '/disableWechat',
    	component: () => import("@/disableWechat.vue"),
    }
]